package com.weixin.generic.pack;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName People
 * @Description
 * @date 2022/2/16 15:49
 * @author: wx
 * @Version 1.0
 */
public class People<T> {
    String username;
    Integer age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getScore() {
        return Score;
    }

    public void setScore(Integer score) {
        Score = score;
    }

    public T getOrder() {
        return order;
    }

    public void setOrder(T order) {
        this.order = order;
    }

    Integer Score;
    T order;

    public People() {
    }

    public People(String username, Integer age, Integer Score, T order) {
        this.username = username;
        this.age = age;
        this.Score = Score;
        this.order = order;
    }

    public <E> List<E> getPeopleList(E[] arr) {
        ArrayList<E> arrayList = new ArrayList<>();
        for (E e : arr) {
            arrayList.add(e);
        }
        return arrayList;
    }
}
